package com.mallcloud.mall.admin.controller;

import com.mallcloud.mall.admin.service.MobileService;
import com.mallcloud.mall.common.core.util.R;
import com.mallcloud.mall.common.security.annotation.Inner;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "手机管理模块")
@RestController
@AllArgsConstructor
@RequestMapping("/mobile")
public class MobileController {
	private final MobileService mobileService;

	@ApiOperation("发送手机短信")
	@Inner(value = false)
	@GetMapping("/{mobile}")
	public R sendSmsCode(@PathVariable String mobile) {
		return mobileService.sendSmsCode(mobile);
	}

}
